-- GENERATED SPELL FOR [Remnant of Corruption] --


function spell0_22439(pUnit, Event) --@Vertex Color Blue,Self--
pUnit:FullCastSpellOnTarget(39169,pUnit)
pUnit:RegisterEvent('Sorts_22439', 630, 1)
end

function Sorts_22439(pUnit, Event)
local choix_sorts_22439 = math.random(0, 0)
if choix_sorts_22439 == 0 then
pUnit:RegisterEvent('spell0_22439', 1, 1)
end
end

function mob22439_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22439', math.random(1500, 3000), 1)
end

function mob22439_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22439_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22439_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22439, 1, 'mob22439_Action')
RegisterUnitEvent(22439, 2, 'mob22439_Leave')
RegisterUnitEvent(22439, 3, 'mob22439_Kill')
RegisterUnitEvent(22439, 4, 'mob22439_Die')
